<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ConsoleLocate</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ConsoleLocate()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>ConsoleLocate</b></font>(x, y)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>



Moves the cursor to the given position, in character coordinates. Any text you 
print after calling this function will start from the specified coordinates. 

 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>x</i></td>
<td width="90%"> 
 
The horizontal position in the console to move to (starting from 0) 

 

</td></tr>
<tr><td><i>y</i></td>
<td> 
 
The vertical position in the console to move to (starting from 0) 

 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

None.





</blockquote><p><b>Remarks</b></p><blockquote>



The console has to be in graphical mode, see <a href="enablegraphicalconsole.html">EnableGraphicalConsole()</a>. 

 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">If</font></b> <font color="#006666">OpenConsole</font>()
<font color="#006666">    EnableGraphicalConsole</font>(1)
    
    <b><font color="#006666">For</font></b> i = 0 <b><font color="#006666">To</font></b> 200
<font color="#006666">      ConsoleLocate</font>(<font color="#006666">Random</font>(79),<font color="#006666"> Random</font>(24))
<font color="#006666">      Print</font>("*")
    <b><font color="#006666">Next</font></b>
    
<font color="#006666">    ConsoleLocate</font>(30, 10)
<font color="#006666">    PrintN</font>("Press return to exit")
<font color="#006666">    Input</font>()
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="enablegraphicalconsole.html">EnableGraphicalConsole()</a> 

</Blockquote><p><b>Supported OS  </b><Blockquote>Windows</Blockquote></p><center>&lt;- <a href=consoleerror.html>ConsoleError()</a> - <a href=index.html>Console Index</a> - <a href=consoletitle.html>ConsoleTitle()</a> -&gt;



</body></html>